package Service;

import entity.User;

import java.util.List;

public interface UserService {
    User login(String username, String password);

    int register(String username, String password, int permission);

    User list(String username);

    int update(User user);

    int updatePassword(int id, String newPassword);
}
